#pragma once

#include <driver/gpio.h>
#include <driver/spi_master.h>
#include <driver/i2c.h>

// I2C总线配置
#define PIN_I2C_PROT 0 // port 0
#define PIN_I2C_SCL GPIO_NUM_14
#define PIN_I2C_SDA GPIO_NUM_15

// EXIO配置


// Display 配置
#define LCD_HOST SPI2_HOST
#define LCD_BIT_PER_PIXEL 16
#define LCD_H_RES 368
#define LCD_V_RES 448
#define PIN_LCD_CS GPIO_NUM_12
#define PIN_LCD_PCLK GPIO_NUM_11
#define PIN_LCD_DATA0 GPIO_NUM_4
#define PIN_LCD_DATA1 GPIO_NUM_5
#define PIN_LCD_DATA2 GPIO_NUM_6
#define PIN_LCD_DATA3 GPIO_NUM_7
#define PIN_LCD_RST -1
#define PIN_LCD_BK_LIGHT -1
#define LCD_BK_LIGHT_ON_LEVEL 1
#define LCD_BK_LIGHT_OFF_LEVEL !LCD_BK_LIGHT_ON_LEVEL

// Touch 配置
#define PIN_TOUCH_RST GPIO_NUM_NC
#define PIN_TOUCH_INT GPIO_NUM_21
#define TOUCH_X_MAX LCD_H_RES
#define TOUCH_Y_MAX LCD_V_RES
